import time


start_time = time.time()
L = list()
for i in range(1, 100000):
    L.append(i*5)
end_time = time.time()
print(f"使用{end_time-start_time}s")


start_time = time.time()
L = [i*5 for i in range(1, 100000)]
end_time = time.time()
print(f"使用{end_time-start_time}s")


L = list()
#  1~10中大于等于4的数字的平方
L = [i**2 for i in range(1, 11) if i >= 4]
print(L)
